﻿

// =================================================================== 
// Module说明
//====================================================================
// 创建时间：2018-12-13 12:49:28
// 负责人：lvsc
// ===================================================================

using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using OF.Component.DTO;
using OF.Component.Model;
namespace OF.Component.IDAL
{
	
	/// <summary>
	/// 数据访问层接口  
	/// </summary>
	internal partial interface IHospital
	{
		
         /// <summary>
    	 /// 根据断言条件获取单个
    	 /// </summary>
    	 HospitalInfo QuerySingle(Expression<Func<HospitalInfo, bool>> predicate);
         
         /// <summary>
    	 /// 根据断言条件获获取列表
    	 /// </summary>
	     IList<HospitalInfo> QueryList(Expression<Func<HospitalInfo, bool>> predicate);
        /// <summary>
        /// 分页
        /// </summary>
        /// <param name="condition"></param>
        /// <returns></returns>
        IList<HospitalInfo> SearchList(HospitalCondition condition);

        /// <summary>
        /// 根据城市获取体检医院
        /// </summary>
        /// <param name="cityId"></param>
        /// <returns></returns>
        List<HospitalInfo> GetByCity(int cityId);
    } 

	
}